//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "tools\fn_deleteVehicle.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

if (IS_ARRAY(_this)) then {
	{ _x call FFUNC(deleteVehicle);
	} forEach _this;
} else {
	if (IS_OBJECT(_this)) then {
		if (_this isKindOf "AllVehicles") then {
			{ deleteVehicle _x;			
			} foreach (crew _this);
		};
		deleteVehicle _this;
	};
};
TRACE("End");
TMFPROFILERSTOP;